<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.my-div {
			/*width: 300px;
			height: 120px;*/
			/*line-height: 120px;*/
			background-color: red;
			color: #fff;
			text-align: center;
			/*float: left;*/

			/*position: absolute;*/
		}

		span {
			background-color: red;
			width: 300px;
			height: 120px;

			/*position: absolute;*/

			/*display: */

			/*float: left;*/

			/*padding: 10px 20px;*/
		}
	</style>
</head>
<body>
	
	<div class="my-div">
		我是文本
	</div>

	<hr>

	<span>
		我也是文本
	</span>

	<!--
		background-color
	-->

</body>
</html>